import config from "@/config"
import http from "@/utils/request"

export default {
	//采购计划
	plan:{
		list: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/lists`,
			name: "获取采购计划列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        goodsLists: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/itemLists`,
			name: "获取采购计划商品明细",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/edit`,
			name: "修改采购计划",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/add`,
			name: "添加采购计划",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/delete`,
			name: "删除采购计划",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/detail`,
			name: "采购计划详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        shop: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/all`,
			name: "采购计划商品",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/checkStatus`,
			name: "采购计划 审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.PurchasePlan/uncheckStatus`,
			name: "采购计划 反审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //采购单
	order:{
		list: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/lists`,
			name: "获取采购单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        goodsLists: {
			url: `${config.API_URL}/adminapi/purchase.purchase/itemLists`,
			name: "获取采购商品列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/edit`,
			name: "修改采购单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/add`,
			name: "添加采购单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/delete`,
			name: "删除采购单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/checkStatus`,
			name: "采购单 审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/uncheckStatus`,
			name: "采购单 反审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/detail`,
			name: "采购单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        shop: {
			url: `${config.API_URL}/adminapi/purchase.Purchase/all`,
			name: "采购单商品",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //采购入库单
	inorder:{
		list: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/lists`,
			name: "获取采购入库单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        goodsLists: {
			url: `${config.API_URL}/adminapi/purchase.purchase_ware/itemLists`,
			name: "获取采购入库商品明细",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/edit`,
			name: "修改采购入库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/add`,
			name: "添加采购入库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/delete`,
			name: "删除采购入库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/detail`,
			name: "采购入库单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/checkStatus`,
			name: "采购入库单 审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseWare/uncheckStatus`,
			name: "采购入库单 反审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //采购退货单
	outorder:{
        code: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/getLastcode`,
			name: "获取采购退货单编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		list: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/lists`,
			name: "获取采购退货单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        goodsLists: {
			url: `${config.API_URL}/adminapi/purchase.purchase_return/itemLists`,
			name: "获取采购退货商品列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/edit`,
			name: "修改采购退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/add`,
			name: "添加采购退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/delete`,
			name: "删除采购退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/detail`,
			name: "采购退货单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/checkStatus`,
			name: "采购退货单 审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.PurchaseReturn/uncheckStatus`,
			name: "采购退货单 反审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //盘库单
	pandian:{
		list: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/lists`,
			name: "获取盘库单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        code: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/getLastcode`,
			name: "盘库单编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/edit`,
			name: "修改盘库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/add`,
			name: "添加盘库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/delete`,
			name: "删除盘库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/detail`,
			name: "盘库单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/checkStatus`,
			name: "盘库单审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.CheckWare/uncheckStatus`,
			name: "盘库单反审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    //合同出库单
	contract:{
		list: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/lists`,
			name: "获取合同出库单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        code: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/getLastcode`,
			name: "获取合同出库单编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/edit`,
			name: "修改合同出库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/add`,
			name: "添加合同出库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/delete`,
			name: "删除合同出库单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/detail`,
			name: "合同出库单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/checkStatus`,
			name: "合同出库单 审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.ContractOut/uncheckStatus`,
			name: "合同出库单 反审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //合同退货单
	contractreturn:{
        code: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/getLastcode`,
			name: "获取合同退货单编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		list: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/lists`,
			name: "获取合同退货单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/edit`,
			name: "修改合同退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/add`,
			name: "添加合同退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/delete`,
			name: "删除合同退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/detail`,
			name: "合同退货单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/checkStatus`,
			name: "合同退货单审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.ContractReturn/uncheckStatus`,
			name: "合同退货单 反审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //自定义退货单
	customreturn:{
		code: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/getLastcode`,
			name: "获取自定义退货单编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        list: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/lists`,
			name: "获取自定义退货单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/edit`,
			name: "修改自定义退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/add`,
			name: "添加自定义退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/delete`,
			name: "删除自定义退货单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/detail`,
			name: "自定义退货单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/checkStatus`,
			name: "自定义退货单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/purchase.CustomReturn/uncheckStatus`,
			name: "自定义退货单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //调拨单
	diaobo:{
		code: {
			url: `${config.API_URL}/adminapi/stock.Allocation/getLastcode`,
			name: "获取调拨单编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        list: {
			url: `${config.API_URL}/adminapi/stock.Allocation/lists`,
			name: "获取调拨单列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/stock.Allocation/edit`,
			name: "修改调拨单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/stock.Allocation/add`,
			name: "添加调拨单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/stock.Allocation/delete`,
			name: "删除调拨单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/stock.Allocation/detail`,
			name: "调拨单详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/stock.Allocation/checkStatus`,
			name: "调拨单 审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/stock.Allocation/uncheckStatus`,
			name: "调拨单 反审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
    //组装拆卸
	zzcx:{
		code: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/getLastcode`,
			name: "获取组装拆卸编号",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        list: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/lists`,
			name: "获取组装拆卸列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/edit`,
			name: "修改组装拆卸",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/add`,
			name: "添加组装拆卸",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/delete`,
			name: "删除组装拆卸",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/detail`,
			name: "组装拆卸详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/checkStatus`,
			name: "组装拆卸 审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        uncheck: {
			url: `${config.API_URL}/adminapi/stock.AssembleDisassemble/uncheckStatus`,
			name: "组装拆卸 反审核",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
	},
}
